
CFLAGS= -I ./ -I library -g

all: kernel lua library user test system

kernel:
	$(MAKE) -C kernel

library:
	$(MAKE) -C library

lua:
	$(MAKE) -C system/shell/lua-5.1.1 generic local

user:
	$(MAKE) -C user

system:
	$(MAKE) -C system

system/asm/asm: kernel/libkernel.a library/libstring.a user/libuser.a system/asm/asm.o

test: kernel/libkernel.a library/libstring.a system/shell/shell.o system/shell/lua-5.1.1/lib/liblua.a user/libuser.a -lm

clean:
	rm -f *.o
	rm -f */*.o
	rm -f */*/*.o
	rm -f */*/*/*.o

.PHONY: all kernel lua library user
